﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace ifunction.BaiduBCS.SDK
{
    /// <summary>
    /// Class Bucket.
    /// </summary>
    [DataContract]
    public class Bucket
    {
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        [DataMember(Name = "bucket_name")]
        public string Name
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the status.
        /// </summary>
        /// <value>The status.</value>
        [DataMember(Name = "status")]
        public int Status { get; set; }

        /// <summary>
        /// Gets or sets the created stamp.
        /// </summary>
        /// <value>The created stamp.</value>
        [DataMember(Name = "cdatetime")]
        public DateTime CreatedStamp { get; set; }

        /// <summary>
        /// Gets or sets the used capacity.
        /// </summary>
        /// <value>The used capacity.</value>
        [DataMember(Name = "used_capacity")]
        public long UsedCapacity
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the total capacity.
        /// </summary>
        /// <value>The total capacity.</value>
        [DataMember(Name = "total_capacity")]
        public long TotalCapacity
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the region.
        /// e.g.: beijing.
        /// </summary>
        /// <value>The region.</value>
        [DataMember(Name = "region")]
        public string Region
        {
            get;
            set;
        }
    }
}
